package com.skin.admin.serviceImpl;

import com.baomidou.mybatisplus.plugins.Page;
import com.skin.admin.entity.Goods;
import com.skin.admin.mapper.GoodsMapper;
import com.skin.admin.service.GoodsService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author skin
 * @since 2018-08-03
 */
@Service
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements GoodsService {

    /**
     * 注入报错 但是不影响
     */
    @Resource
    private GoodsMapper goodsMapper;

    @Override
    public Page<Goods> selectWithFile(Page<Goods> page) {
       List<Goods> goodsList= goodsMapper.selectWithFile(page);
        return page.setRecords(goodsList);
    }
}
